package actions;

import java.util.HashMap;
import java.util.Vector;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import model.StudentModel;

import org.apache.struts.action.*;

public class SetStatusAction extends Action
{
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response){
		
		String newStatus = request.getParameter("status");
		String appId = request.getParameter("app");
		
		System.out.print(newStatus);
		
		StudentModel.updateStatus(newStatus, new Integer(appId));
	
		return mapping.findForward("success");
	}
}
